#!/bin/bash

# 检查 /etc/default/grub 中的配置
if grep -E 'selinux=1|security=selinux' /etc/default/grub >/dev/null 2>&1; then
    echo "[+] 已设置启动参数"
else
    echo "[-] 未设置启动参数"
fi


# 检查当前SELinux状态
if sestatus | grep "SELinux status" | grep "enabled" >/dev/null 2>&1; then
    echo "[+] SELinux当前状态为启用"
else
    echo "[-] SELinux当前状态未启用"
fi

